*, html {
    scroll-behavior: smooth !important;
    overscroll-behavior-y: none;
}

html, body {
    overscroll-behavior: none;
    overflow-x: hidden;
}

:root {

     /* WHITE MODE color */
     --background-color:white;
     --main-color: #121212;
     --secondary-color: #27272a;
     --third-color: #676767;
     --lighter-background: #444444;
     --main-background-color: #fafafa;
     --second-background-color: #ffffff;
     --border-color: #cbcbcb;

    /* DARK MODE color */
    --background-color:#121212;
    --main-color:#fafafa;
    --secondary-color:#ffffff;
    --third-color:#ffffffc2;
    --lighter-background:#cccccc;
    --main-background-color:#121212;
    --second-background-color:#27272a;
    --border-color:#272727;

    
    /* fonts */
    --primary-font: "DM Sans", sans-serif;
    --secondary-font: "Space Grotesk", sans-serif;

    /* text */

    --h1-font-size: 32px;
    --h2-font-size:28px;
    --h3-font-size: 22px;
    --p-font-size: 20.5px;
    --date-font-size: 16px;
    --line-height:1.7;
    --link-color: #b9ddff;
    --link-hover-color: #6ba3d4;

    /* images */
    --project-image-width: 250px;

    /* misc */
    --border-size:1px;
}

.section {
    margin-bottom:40px;
}

body {
    background-color: var(--background-color);
    color: var(--third-color);
    font-family: var(--primary-font);
    
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0 15px;
    line-height: var(--line-height);
    /*letter-spacing:-0.8px;*/
    letter-spacing: normal;
}

h1, h2, h3 {
    color:var(--main-color);
    margin-bottom: 5px;
    letter-spacing: inherit;
}

h1 {
    font-size: var(--h1-font-size);
}

h2 {
    font-size: var(--h2-font-size);
}

h3{ 
    font-size: var(--h3-font-size)
}

/* About page title */
.about h2 {
    font-size: 80px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
}

/* Writing page title */
.section > h1 {
    font-size: 80px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
}

a {
    color: var(--link-color);
    font-family: var(--secondary-font);
    font-weight:bold;
    text-decoration:underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
}

p, .about p {
    font-size: var(--p-font-size);
    letter-spacing: inherit;
}

/* horizontal line */

hr {
    border: 0;
    border-top: 0.2px solid #cccccc70;
    margin-top: 35px;
    margin-bottom: 35px;
}



/* container */

.container {
    width: 100%;
    max-width:750px;
    margin-top:100px;
    text-align: left;
    box-sizing: border-box;
}

/* Social Media Links */
.author-social {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.author-social a {
    color: var(--secondary-color);
    font-size: 38px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.author-social a:hover {
    color: var(--link-hover-color);
    transform: translateY(-2px);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    :root {
        --h1-font-size: 28px;
        --h2-font-size: 24px;
        --h3-font-size: 20px;
        --p-font-size: 18px;
        --line-height: 1.6;
    }

    .container {
        margin-top: 70px;
        padding: 0;
    }

    body {
        overflow-x: hidden;
        overscroll-behavior: none;
        position: relative;
    }

    html {
        overscroll-behavior: none;
    }

    /* About page title */
    .about h2 {
        font-size: 50px;
    }

    /* Writing page title */
    .section > h1 {
        font-size: 50px;
    }

    .author-social a {
        font-size: 32px;
    }
}
